package com.zzuli.dcxt.service.impl;

import com.zzuli.dcxt.dao.CustomerMapper;
import com.zzuli.dcxt.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerServiceImpl implements CustomerService {
    @Autowired
    private CustomerMapper customerMapper;

    @Override
    public List getCustomerList() {
        List list = customerMapper.getCustomerList();
        return list;
    }

    @Override
    public void deleteCustomer(int id) {
        customerMapper.deleteByPrimaryKey(id);
    }
}
